﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Shared
{
    public partial class EventSettingTab : System.Web.UI.UserControl
    {
        public enum TabNameEnum
        {
            Lastest = 0,
            Schedule,
            MyActivities,
            Create,
            Edit
        }

        public TabNameEnum SelectedTabName { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.PreRender += new EventHandler(EventSettingTab_PreRender);
        }

        void EventSettingTab_PreRender(object sender, EventArgs e)
        {
            pnEdit.Visible = SelectedTabName == TabNameEnum.Edit;
        }
    }
}